package com.resrun.vo.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * 证书申请请求参数
 *
 * @author hupan
 * @since 2024-01-23
 */
@Data
public class CertDownloadRequest {

    /**
     * 证书ID
     */
    @NotNull(message = "证书ID不能为空")
    private Long certId;

    /**
     * 证书类型
     */
    @Range(min = 1, max = 3, message = "证书类型不正确")
    private Byte certFormat;

}
